﻿using Amarok.Agents;
using Amarok.Presentation;


namespace Amarok.Samples
{
	/// <summary>
	/// </summary>
	public sealed class ShellWindowController : MyWindowControllerBase<UiShellWindow>
	{
		#region ++ Public Interface ++

		/// <summary>
		/// </summary>
		public ShellWindowController(MyEnvironment environment, AgentOptions options, IView view, UiShellWindow viewModel)
			: base(environment, options, view, viewModel)
		{
		}

		#endregion

		#region Implementation (Initialization)

		protected override void OnPresetViewModel(UiShellWindow viewModel)
		{
			base.OnPresetViewModel(viewModel);

			viewModel.Title = "Shell Window - Sample 2";
			viewModel.OpenDialogCommand = new ViewCommand(_HandleOpenDialogCommand);
		}

		private void _HandleOpenDialogCommand()
		{
			var result = base.ShowDialog<SampleDialogDescription>();
		}

		#endregion

	}
}
